package com.tzpay.tzpay.presenter;

import android.content.Context;

/**
 * Created by chenfeiyue on 16/3/18.
 */
public interface TradeLogicView {
    int TYPE_CREATE = 1;
    int TYPE_QUERY = TYPE_CREATE + 1;
    int TYPE_REFUND = TYPE_QUERY + 1;
    int TYPE_REVERSE = TYPE_REFUND + 1;
    int TYPE_GET_ORDER_NO = TYPE_REVERSE + 1; // 从服务器获取订单号

    void showProgress(int type);

    void onFailed(int type, String resperr);

    void onSuccess(int type, Object result);

    Context getContext();
}
